fix(eap): Map transaction alias to segment name#114908
Draft
fix(eap): Map transaction alias to segment name#114908
Conversation
Map the transaction alias to the canonical segment name attribute so EAP search uses the coalesced replacement for the deprecated sentry.transaction alias. Co-Authored-By: GPT-5.5 <noreply@openai.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the trace attributes endpoint displaying the public transaction alias when EAP returns the deprecated sentry.transaction attribute name. Co-Authored-By: GPT-5.5 <noreply@cursor.sh> Co-authored-by: Cursor <cursoragent@cursor.com>
Use sentry.segment.name before legacy v1 fields when propagating the segment name so processing preserves the canonical EAP value. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep replacement span attributes visible when serializing trace item attributes and add coverage for segment name propagation fallback behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Document that segment name propagation falls back to the span name after checking canonical and legacy description fields. Co-authored-by: Cursor <cursoragent@cursor.com>
Restore the existing trace item attribute filtering behavior for replacement attributes while keeping the segment name propagation changes separate. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop endpoint serialization tests that no longer apply after restoring the existing replacement attribute filtering behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove process-segments consumer changes from this branch so the EAP alias update can be reviewed independently. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Backend Test FailuresFailures on
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The public span
transactionattribute now resolves tosentry.segment.nameinstead of the deprecatedsentry.transactionfield. EAP coalesces the deprecated transaction alias into the canonical segment name attribute, so this keeps transaction searches aligned with the stored convention attribute.The branch is intentionally scoped to the EAP attribute alias mapping after splitting the process-segments consumer fix into a separate PR.